package com.ciei.dpagm.controller;

import com.alibaba.fastjson.JSONObject;
import com.ciei.dpagm.common.controller.BaseController;
import com.ciei.dpagm.service.VersionsRecordService;
import com.ciei.dpagm.util.PageParam;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
@RequestMapping("versionsRecord")
public class VersionsRecordController extends BaseController {

    @Autowired
    private VersionsRecordService versionsRecordService;

    @RequestMapping("getVersionsRecordData")
    @ResponseBody
    public JSONObject getVersionsRecordData(@RequestBody JSONObject page){
        PageParam pageParam = getPageParams(page);
        return versionsRecordService.getVersionsRecordDataGrid(pageParam);
    }

}
